<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-fl">编辑岗位证信息</div>
                    <div class="widget-function am-fr">
                        <a href="javascript:;" class="am-icon-cog"></a>
                    </div>
                </div>
                <div class="widget-body am-fr">
                    <form class="am-form tpl-form-line-form" id="handcertificatebasicinfoForm" method="post">
                        <input type="hidden" id="id" name="id" th:value="${record.id}"/>
                        <!--操作证类型(certificateType)-->
                        <div class="am-form-group">
                            <label for="certificateType" class="am-u-sm-2 am-form-label">操作证类型
                                <span class="tpl-form-line-small-title">CertificateType</span>
                            </label>
                            <div class="am-u-sm-10">
                                <div class="am-form-group" id="certificateType">
                                    <input type="radio" class="am-form-group" name="certificateType" value="1"
                                           th:checked="${record.certificateType != null and record.certificateType == '1'}">操作证</input>
                                    <input type="radio" class="am-form-group" name="fuel" value="2"
                                           th:checked="${record.certificateType != null and record.certificateType == '2'}">评估师证</input>
                                    <input type="radio" class="am-form-group" name="fuel" value="3"
                                           th:checked="${record.certificateType != null and record.certificateType == '3'}">维修技师证</input>
                                </div>
                            </div>
                        </div>
                        <!--机械类型(machineryType)-->
                        <div class="am-form-group">
                            <label for="machineryType" class="am-u-sm-2 am-form-label">机械类型
                                <span class="tpl-form-line-small-title">MachineryType</span>
                            </label>
                            <div class="am-u-sm-10">
                                <select class="tpl-form-input" name="machineryType" id="machineryType">
                                    <option value=''>---请选择---</option>
                                    <option value="1"
                                            th:selected="${record.machineryType != null and record.machineryType == '1'}">
                                        挖掘机
                                    </option>
                                    <option value="2"
                                            th:selected="${record.machineryType != null and record.machineryType == '2'}">
                                        装载机
                                    </option>
                                    <option value="3"
                                            th:selected="${record.machineryType != null and record.machineryType == '3'}">
                                        矿用自卸车
                                    </option>
                                    <option value="4"
                                            th:selected="${record.machineryType != null and record.machineryType == '4'}">
                                        推土机
                                    </option>
                                    <option value="5"
                                            th:selected="${record.machineryType != null and record.machineryType == '5'}">
                                        压路机
                                    </option>
                                    <option value="6"
                                            th:selected="${record.machineryType != null and record.machineryType == '6'}">
                                        平地机
                                    </option>
                                    <option value="7"
                                            th:selected="${record.machineryType != null and record.machineryType == '7'}">
                                        混凝土机械
                                    </option>
                                    <option value="8"
                                            th:selected="${record.machineryType != null and record.machineryType == '8'}">
                                        桩工机械
                                    </option>
                                    <option value="9"
                                            th:selected="${record.machineryType != null and record.machineryType == '9'}">
                                        凿岩机械
                                    </option>
                                </select>
                            </div>
                        </div>
                        <!--证件级别(certificateLevel)-->
                        <div class="am-form-group">
                            <label for="certificateLevel" class="am-u-sm-2 am-form-label">证件级别
                                <span class="tpl-form-line-small-title">CertificateLevel</span>
                            </label>
                            <div class="am-u-sm-10">
                                <select class="tpl-form-input" name="certificateLevel" id="certificateLevel">
                                    <option value=''>---请选择---</option>
                                    <option value="1"
                                            th:selected="${record.certificateLevel != null and record.certificateLevel == '1'}">
                                        初级
                                    </option>
                                    <option value="2"
                                            th:selected="${record.certificateLevel != null and record.certificateLevel == '2'}">
                                        中级
                                    </option>
                                    <option value="3"
                                            th:selected="${record.certificateLevel != null and record.certificateLevel == '3'}">
                                        高级
                                    </option>
                                    <option value="4"
                                            th:selected="${record.certificateLevel != null and record.certificateLevel == '4'}">
                                        专家级
                                    </option>
                                </select>
                            </div>
                        </div>
                        <!--姓名(name)-->
                        <div class="am-form-group">
                            <label for="name" class="am-u-sm-2 am-form-label">姓名
                                <span class="tpl-form-line-small-title">Name</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="name" class="tpl-form-input" placeholder="请输入" name="name"
                                       th:value="${record.name != null} ? ${record.name} : ''"/>
                            </div>
                        </div>
                        <!--性别(sex)-->
                        <div class="am-form-group">
                            <label for="sex" class="am-u-sm-2 am-form-label">性别
                                <span class="tpl-form-line-small-title">Sex</span>
                            </label>
                            <div class="am-u-sm-10">
                                <div class="am-form-group" id="sex">
                                    <input type="radio" class="am-form-group" name="sex" value="0"
                                           th:checked="${record.sex != null and record.sex == '0'}">男</input>
                                    <input type="radio" class="am-form-group" name="maneuver" value="1"
                                           th:checked="${record.sex != null and record.sex == '1'}">女</input>
                                </div>
                            </div>
                        </div>
                        <!--身份证(identityNum)-->
                        <div class="am-form-group">
                            <label for="identityNum" class="am-u-sm-2 am-form-label">身份证
                                <span class="tpl-form-line-small-title">IdentityNum</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="identityNum" class="tpl-form-input" placeholder="请输入"
                                name="identityNum"
                                th:value="${record.identityNum != null} ? ${record.identityNum} : ''"/>
                            </div>
                        </div>
                        <!--住址(address)-->
                        <div class="am-form-group">
                            <label for="address" class="am-u-sm-2 am-form-label">住址
                                <span class="tpl-form-line-small-title">Address</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="address" class="tpl-form-input" placeholder="请输入" name="address"
                                       th:value="${record.address != null} ? ${record.address} : ''"/>
                            </div>
                        </div>
                        <!--手机号(phone)-->
                        <div class="am-form-group">
                            <label for="phone" class="am-u-sm-2 am-form-label">手机号
                                <span class="tpl-form-line-small-title">Phone</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="phone" class="tpl-form-input" placeholder="请输入" name="phone"
                                       th:value="${record.phone != null} ? ${record.phone} : ''"/>
                            </div>
                        </div>
                        <!--工作年限(workTime)-->
                        <div class="am-form-group">
                            <label for="workTime" class="am-u-sm-2 am-form-label">工作年限
                                <span class="tpl-form-line-small-title">WorkTime</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="workTime" class="tpl-form-input" placeholder="请输入"
                                       name="workTime"
                                       th:value="${record.workTime != null} ? ${record.workTime} : ''"/>
                            </div>
                        </div>
                        <!--&lt;!&ndash;&lt;!&ndash;出生日期(birthday)&ndash;&gt;&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="birthday" class="am-u-sm-2 am-form-label">出生日期-->
                        <!--<span class="tpl-form-line-small-title">Birthday</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<input type="text" id="birthday" class="form-control validate[required]"-->
                        <!--onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="birthday"-->
                        <!--placeholder="请选择日期"-->
                        <!--th:value="${#dates.format(record.birthday, 'yyyy-MM-dd')}"/>-->
                        <!--<div class="input-group-btn">-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--</div>-->

                        <!--&lt;!&ndash;受教育水平(educationLevel)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="educationLevel" class="am-u-sm-2 am-form-label">受教育水平-->
                        <!--<span class="tpl-form-line-small-title">EducationLevel</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<select class="tpl-form-input" name="educationLevel" id="educationLevel">-->
                        <!--<option value=''>-&#45;&#45;请选择-&#45;&#45;</option>-->
                        <!--<option value="1"-->
                        <!--th:selected="${record.educationLevel != null and record.educationLevel == '1'}">-->
                        <!--小学-->
                        <!--</option>-->
                        <!--<option value="2"-->
                        <!--th:selected="${record.educationLevel != null and record.educationLevel == '2'}">-->
                        <!--初中-->
                        <!--</option>-->
                        <!--<option value="3"-->
                        <!--th:selected="${record.educationLevel != null and record.educationLevel == '3'}">-->
                        <!--初中中专-->
                        <!--</option>-->
                        <!--<option value="4"-->
                        <!--th:selected="${record.educationLevel != null and record.educationLevel == '4'}">-->
                        <!--高中-->
                        <!--</option>-->
                        <!--<option value="5"-->
                        <!--th:selected="${record.educationLevel != null and record.educationLevel == '5'}">-->
                        <!--高中中专-->
                        <!--</option>-->
                        <!--<option value="6"-->
                        <!--th:selected="${record.educationLevel != null and record.educationLevel == '6'}">-->
                        <!--大专-->
                        <!--</option>-->
                        <!--<option value="7"-->
                        <!--th:selected="${record.educationLevel != null and record.educationLevel == '7'}">-->
                        <!--本科-->
                        <!--</option>-->
                        <!--<option value="8"-->
                        <!--th:selected="${record.educationLevel != null and record.educationLevel == '8'}">-->
                        <!--硕士研究生-->
                        <!--</option>-->
                        <!--<option value="9"-->
                        <!--th:selected="${record.educationLevel != null and record.educationLevel == '9'}">-->
                        <!--博士研究生-->
                        <!--</option>-->
                        <!--</select>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;公司名称(companyName)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="companyName" class="am-u-sm-2 am-form-label">公司名称-->
                        <!--<span class="tpl-form-line-small-title">CompanyName</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<input type="text" id="companyName" class="tpl-form-input" placeholder="请输入"-->
                        <!--name="companyName"-->
                        <!--th:value="${record.companyName != null} ? ${record.companyName} : ''"/>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;籍贯(origin)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="origin" class="am-u-sm-2 am-form-label">籍贯-->
                        <!--<span class="tpl-form-line-small-title">Origin</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<input type="text" id="origin" class="tpl-form-input" placeholder="请输入" name="origin"-->
                        <!--th:value="${record.origin != null} ? ${record.origin} : ''"/>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;邮箱(email)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="email" class="am-u-sm-2 am-form-label">邮箱-->
                        <!--<span class="tpl-form-line-small-title">Email</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<input type="text" id="email" class="tpl-form-input" placeholder="请输入" name="email"-->
                        <!--th:value="${record.email != null} ? ${record.email} : ''"/>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;证书有效开始时间(startCerDate)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="startCerDate" class="am-u-sm-2 am-form-label">证书有效开始时间-->
                                <!--<span class="tpl-form-line-small-title">startCerDate</span>-->
                            <!--</label>-->
                            <!--<div class="am-u-sm-10">-->
                                <!--<input type="text" id="startCerDate" class="form-control validate[required]"-->
                                       <!--onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="startCerDate"-->
                                       <!--placeholder="请选择日期"-->
                                       <!--th:value="${#dates.format(record.startCerDate, 'yyyy-MM-dd')}"/>-->
                                <!--<div class="input-group-btn">-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;证书有效结束时间(endCerDate)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                            <!--<label for="endCerDate" class="am-u-sm-2 am-form-label">证书有效结束时间-->
                                <!--<span class="tpl-form-line-small-title">endCerDate</span>-->
                            <!--</label>-->
                            <!--<div class="am-u-sm-10">-->
                                <!--<input type="text" id="endCerDate" class="form-control validate[required]"-->
                                       <!--onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="endCerDate"-->
                                       <!--placeholder="请选择日期"-->
                                       <!--th:value="${#dates.format(record.endCerDate, 'yyyy-MM-dd')}"/>-->
                                <!--<div class="input-group-btn">-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;培训开始时间(startTrainDate)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                            <!--<label for="startTrainDate" class="am-u-sm-2 am-form-label">培训开始时间-->
                                <!--<span class="tpl-form-line-small-title">startTrainDate</span>-->
                            <!--</label>-->
                            <!--<div class="am-u-sm-10">-->
                                <!--<input type="text" id="startTrainDate" class="form-control validate[required]"-->
                                       <!--onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="startTrainDate"-->
                                       <!--placeholder="请选择日期"-->
                                       <!--th:value="${#dates.format(record.startTrainDate, 'yyyy-MM-dd')}"/>-->
                                <!--<div class="input-group-btn">-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;培训结束时间(endTrainDate)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                            <!--<label for="endTrainDate" class="am-u-sm-2 am-form-label">培训结束时间-->
                                <!--<span class="tpl-form-line-small-title">endTrainDate</span>-->
                            <!--</label>-->
                            <!--<div class="am-u-sm-10">-->
                                <!--<input type="text" id="endTrainDate" class="form-control validate[required]"-->
                                       <!--onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="endTrainDate"-->
                                       <!--placeholder="请选择日期"-->
                                       <!--th:value="${#dates.format(record.endTrainDate, 'yyyy-MM-dd')}"/>-->
                                <!--<div class="input-group-btn">-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;培训内容(trainContent)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                            <!--<label for="trainContent" class="am-u-sm-2 am-form-label">培训内容-->
                                <!--<span class="tpl-form-line-small-title">trainContent</span>-->
                            <!--</label>-->
                            <!--<div class="am-u-sm-10">-->
                                <!--<input type="text" id="trainContent" class="tpl-form-input" placeholder="请输入"-->
                                       <!--name="trainContent"-->
                                       <!--th:value="${record.trainContent != null} ? ${record.trainContent} : ''"/>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--备注信息(remark)-->
                        <div class="am-form-group">
                            <label for="remark" class="am-u-sm-2 am-form-label">备注信息
                                <span class="tpl-form-line-small-title">remark</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="remark" class="tpl-form-input" placeholder="请输入关键字" name="remark"
                                       th:value="${record.remark != null} ? ${record.remark} : ''"/>
                            </div>
                        </div>

                        <!--操作-->
                        <div class="am-form-group">
                            <div class="am-u-sm-10 am-u-sm-push-2">

                                <button type="button" onclick="return doSubmit();"
                                        class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交
                                </button>
                                <button type="button" onclick="loadPage('handcertificatebasicinfo/listUI')"
                                        class="am-btn am-btn-success tpl-btn-bg-color-success ">返回
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>
<script th:inline="javascript">
    <![CDATA[
    //$('select').selected();
    validateUserForm();
    var valdater;

    function validateUserForm() {
        valdater = $('#handcertificatebasicinfoForm').validate({
            errorElement: 'span',
            errorClass: 'am-icon-times',
            focusInvalid: true,
            onkeyup: false,
            ignore: "",
            rules: {
                title: {
                    required: true
                }
            },
            messages: {
                name: {
                    required: "请填写名称"
                }
            }
        });
    }

    function doSubmit() {
        if (valdater.form()) {
            commit('handcertificatebasicinfoForm', 'handcertificatebasicinfo/save', 'handcertificatebasicinfo/listUI');
            return true;
        }
        return false;
    }

    //initUpFileOne('upFile','coverImg','添加封面图片','');

    ]]>
</script>
<script type="text/javascript" th:src="@{/My97DatePicker/WdatePicker.js}"/>